From: Christian Marangi Date: Tue, 18 Nov 2025 12:43:57 +0000 (+0100) Subject: libftdi: drop package X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=a7381fa91fa1674c9bab64f8237b18b85f0eff7a;p=feed%2Fpackages.git libftdi: drop package libftdi was used only by telldus-core and the old libftdi 0.x version hasn't been updated from 10 years. telldus-core works correctly with libftdi1 with a trivial patch. Drop the package for good instead of fixing it for CMake >= 4.0 compatibility. Signed-off-by: Christian Marangi --- diff --git a/libs/libftdi/Makefile b/libs/libftdi/Makefile deleted file mode 100644 index 7e5dccb886..0000000000 --- a/libs/libftdi/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# -# Copyright (C) 2011-2015 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=libftdi -PKG_VERSION:=0.20 -PKG_RELEASE:=7 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/ -PKG_HASH:=3176d5b5986438f33f5208e690a8bfe90941be501cc0a72118ce3d338d4b838e - -PKG_MAINTAINER:=Álvaro Fernández Rojas -PKG_LICENSE:=LGPL-2.0 -PKG_LICENSE_FILES:=COPYING.LIB - -CMAKE_INSTALL:=1 -PKG_BUILD_FLAGS:=no-mips16 - -include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/cmake.mk - -define Package/libftdi - SECTION:=libs - CATEGORY:=Libraries - DEPENDS:=+libusb-compat - TITLE:=Library to talk to FTDI chips - URL:=http://www.intra2net.com/en/developer/libftdi/ -endef - -define Package/libftdi/description - libFTDI - FTDI USB driver with bitbang mode - libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232H, FT4232H, FT2232D and FT245R, including the popular bitbang mode. - The library is linked with your program in userspace, no kernel driver required. -endef - -CMAKE_OPTIONS += \ - -DBoost_NO_BOOST_CMAKE=ON \ - -DEXAMPLES=OFF - -define Build/InstallDev - $(call Build/InstallDev/cmake,$(1)) - $(SED) 's,/usr/bin,/usr,g' $(1)/usr/lib/pkgconfig/libftdi.pc - $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libftdi.pc - $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdi.pc - $(SED) 's,/usr/bin,/usr,g' $(1)/usr/lib/pkgconfig/libftdipp.pc - $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libftdipp.pc - $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdipp.pc - $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libftdi-config - $(INSTALL_DIR) $(2)/bin - $(LN) ../../usr/bin/libftdi-config $(2)/bin/libftdi-config -endef - -define Package/libftdi/install - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libftdi-config $(1)/usr/bin/ - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so.* $(1)/usr/lib/ -endef - -$(eval $(call BuildPackage,libftdi)) diff --git a/libs/libftdi/patches/100-fix-x86_64-build.patch b/libs/libftdi/patches/100-fix-x86_64-build.patch deleted file mode 100644 index 2460cb1633..0000000000 --- a/libs/libftdi/patches/100-fix-x86_64-build.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -44,7 +44,7 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 4) - SET(LIB_SUFFIX "") - SET(PACK_ARCH "") - ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8) -- SET(LIB_SUFFIX 64) -+ SET(LIB_SUFFIX "") - SET(PACK_ARCH .x86_64) - endif(CMAKE_SIZEOF_VOID_P EQUAL 4) - diff --git a/libs/libftdi/patches/101-fix-cmake-version-packagekit.patch b/libs/libftdi/patches/101-fix-cmake-version-packagekit.patch deleted file mode 100644 index e6861dcd96..0000000000 --- a/libs/libftdi/patches/101-fix-cmake-version-packagekit.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -1,9 +1,12 @@ - # Project - project(libftdi) -+set(PACKAGE libftdi) - set(MAJOR_VERSION 0) - set(MINOR_VERSION 20) -+set(VERSION ${VERSION_STRING}) - set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}) --SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") -+set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") -+set(top_srcdir ${CMAKE_SOURCE_DIR}) - - # CMake - if("${CMAKE_BUILD_TYPE}" STREQUAL "") -@@ -98,12 +101,6 @@ option(DOCUMENTATION "Generate API docum - - find_package(Doxygen) - if(DOCUMENTATION AND DOXYGEN_FOUND) -- -- # Set variables -- set(PACKAGE libftdi) -- set(VERSION ${VERSION_STRING}) -- set(top_srcdir ${CMAKE_SOURCE_DIR}) -- - # Find doxy config - message(STATUS "Doxygen found.") - set(DOXY_DIR "${CMAKE_SOURCE_DIR}/doc") diff --git a/libs/libftdi/patches/102-fix-cmake-include-examples.patch b/libs/libftdi/patches/102-fix-cmake-include-examples.patch deleted file mode 100644 index b37a968063..0000000000 --- a/libs/libftdi/patches/102-fix-cmake-include-examples.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/examples/CMakeLists.txt -+++ b/examples/CMakeLists.txt -@@ -2,7 +2,7 @@ option(EXAMPLES "Build example programs" - - if (EXAMPLES) - # Includes -- include( ${CMAKE_CURRENT_SOURCE_DIR} -+ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_BINARY_DIR} - ) -